﻿/**
 * ...
 * @author oxana
 */

package client;

class Channel implements INews
{
	private var id		 : UInt;
	private var name     : String;
	private var link     : String;
	private var link_img : String;
	private var descr    : String;
	private var date     : String;
	private var items    : Array <Item>;
	
	
	public function new(name: String, link : String, link_img : String, chanId : UInt, descr: String, date : String, items : Array <Item>) 
	{
		this.name = name;
		this.link = link;
		this.link_img = link_img;
		this.id = chanId;
		this.descr = descr;
		this.date = date;
		this.items = items;
	}
	
	public function  getName():String {
		return name;
	}
	public function getLink():String {
		return link;
	}
	public function getLinkImg():String {
		return link_img;
	}
	public function getChanId():UInt {
		return id;
	}
	public function getDescr():String {
		return descr;
	}
	public function getDate():String {
		return date;
	}
	public function getItems():Array <Item> {
		return items;
	}
}